import { BasicPageSearch, BasicPageResult } from './basicType';
import { Tag } from './tag'


export type Expert = {
    id?:         number;
    name?:       string;
    alias?:      string;
    pic?:        string;
    remark?:     string;
    status?:     number;
    createTime?: Date;
    createUser?: number;
    updateTime?: Date;
    updateUser?: number;
    tags:       Tag[];
}

export type ExpertPageResult = BasicPageResult & {
    records: Expert[]; 
}

export type RecExpertPageSearch = BasicPageSearch & {
    rec: number; // 位置，10-专题页；11-精选首页; 12-包括10和11
}

export type RecExpert = {
    expertsId?: number;
    name?:     string;
    alias?:    string;
    remark?:    string;
    pic?:      string;
}

export type RecExpertPageResult = BasicPageResult & {
    records: RecExpert[]; 
}